ExtractString (origin, startString, endString)

Basic and Crystal syntax.

Arguments
Returns

String

Action

This function will return the first occurrence (in the Origin string) of a string that starts with the StartString and ends with EndString. If the EndString is not found, the string starting with StartString until the end of the string is returned.

Examples

The following examples are applicable to Crystal syntax:

StringVar strTest := "James and crystal";

ExtractString (strTest,"J","s");

Returns "ame".

StringVar strTest := "James and crystal";

ExtractString (strTest, "", "s");

Returns "Jame".



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com